﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<AgriculturalMachinery.Models.PurchaseViewModel<object>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	农友信息
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div class="myContent">
    <a class="rcezrlex">日出而作，日落而息。</a>
    <div id="datepicker">
    </div>
    <div class="myContent middle">
        <a class="registerUser">已注册用户</a><br />
        <%int i = 0;%>
        <%foreach (AgriculturalMachinery.Models.Clients c in Model.QueryClient)%>
        <% { %>
        <%if (c.UserName.ToString().Trim().Equals("admin")) continue;%>
        <%i++; %>
        <div class="persional">
            <img alt="" src="../../Avatar/<%=c.Avatar %>" class="persionalAvatar" />
            <a class="persionalName" href="/personal/detail/<%=c.UserID %>">
                <%=c.UserName %></a><br />
            <a class="persionalLookinside" href="/personal/detail/<%=c.UserID %>">查看</a><br />
        </div>
        <%if (i == 5)
              break; %>
        <%} %>
        <div id="fenyeLeft" class="fenyeLeft" onmousemove="fenyeLeftMouseMove();" onmouseout="fenyeLeftMouseOut();"
            onclick="fenye();">
        </div>
        <div id="fenyeRight" class="fenyeRight" onmousemove="fengyeRightMouseMove();" onmouseout="fenyeRightMouseOut();"
            onclick="fenye();">
        </div>
    </div>
</div>
<div class="detailsContainer">
购买信息:
<%foreach (AgriculturalMachinery.Models.Purchase p in Model.PurchaseInfo) %>
<%{ %>
    变速箱型号:<%=p.GearboxModel %>
    变速箱铭牌号:<%=p.GearboxNameplate %>
    变速箱价格:<%=p.GearboxPrice %>
    购买日期:<%=p.PurchaseDate %>
    发动机型号:<%=p.EngineModel %>
    发动机铭牌号:<%=p.EngineNameplate %>
    发动机价格:<%=p.EnginePrice %>
    购买日期:<%=p.PurchaseDate %>
<%} %>
</div>
<%try %>
<%{ %>
    <%if (Request.Cookies["cooUserID"].Value != null) %>
    <%{ %>
        <div class="mssageContainer">
        给我留言:
        <textarea style="height:90px" cols="20" rows="5" id="messageContent"></textarea>
        <input type="button" value="留言" onclick="leaveMessage();"/>
        </div>
    <%} %>
<%} %>
<%catch %>
<%{ %>
<%} %>
<script type="text/javascript" src="../../Scripts/personalManager.js"></script>
</asp:Content>
